package cn.iocoder.yudao.module.erp.dal.mysql.business.tax.taxrate;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.erp.controller.admin.business.tax.taxrate.vo.TaxRatePageReqVO;
import cn.iocoder.yudao.module.erp.dal.dataobject.business.tax.taxrate.TaxRateDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 税率 Mapper
 *
 * @author yy
 */
@Mapper
public interface TaxRateMapper extends BaseMapperX<TaxRateDO> {

    default PageResult<TaxRateDO> selectPage(TaxRatePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<TaxRateDO>()
                .betweenIfPresent(TaxRateDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(TaxRateDO::getId));
    }

}